package com.financing.platform.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.financing.platform.dao.IFpProjectTransferHisDao;
import com.financing.platform.dto.FpProjectTransferHisDTO;
import com.financing.platform.service.IFpProjectTransferHisService;

/**
 * @Description:Service实现类
 * @version 1.0
 * @created caojiayao
 */
 
@Service(value="fpProjectTransferHisService")
public class FpProjectTransferHisServiceImpl implements IFpProjectTransferHisService {
    @Autowired
	private IFpProjectTransferHisDao fpProjectTransferHisDao;
	
	
	@Override
	public FpProjectTransferHisDTO getFpProjectTransferHis(Integer id) {
		return fpProjectTransferHisDao.getFpProjectTransferHis(id);
	}
	
	
	@Override
	public Integer insertFpProjectTransferHis(FpProjectTransferHisDTO dto) {
		return fpProjectTransferHisDao.insertFpProjectTransferHis(dto);
	}

	
	@Override
	public Integer updateFpProjectTransferHis(FpProjectTransferHisDTO dto) {
		return fpProjectTransferHisDao.updateFpProjectTransferHis(dto);
	}
	
	@Override
	public Integer delFpProjectTransferHis(Integer id) {
		return fpProjectTransferHisDao.delFpProjectTransferHis(id);
	}
	
	@Override
	public List<FpProjectTransferHisDTO> listFpProjectTransferHis(FpProjectTransferHisDTO dto) {
		return fpProjectTransferHisDao.listFpProjectTransferHis(dto);
	}
	
	@Override
	public Integer countFpProjectTransferHis(FpProjectTransferHisDTO dto){
		return fpProjectTransferHisDao.countFpProjectTransferHis(dto);
	}
	
	public String getUserName(String userID){
		return fpProjectTransferHisDao.getUserName(userID);
	}


	@Override
	public String getTransferUserNameByProjectID(FpProjectTransferHisDTO dto) {
		return fpProjectTransferHisDao.getTransferUserNameByProjectID(dto);
	}
}
